package cn.onlineclass.dao;

import cn.onlineclass.entity.OUnit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OUnitMapper {

    int deleteById(Long id);

    int insertUnit(OUnit record);

    int updateById(OUnit record);

    public List<OUnit> findALL();

    public OUnit get(long id);

    public int searchTotal(@Param("inuse") boolean inuse, @Param("majorid") int majorid);

    public List<OUnit> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize,
                              @Param("inuse") boolean inuse, @Param("majorid") int majorid);
}